package com.work.vo.main;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.work.utils.BigDecimalSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 货物库存汇总统计-货场VO
 *
 * @author ：dujianyu
 * @since ：Created in 2024/7/4 11:01
 */
@Data
public class StorageByPositionVO {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "货场ID",notes = "")
    private Long positionId ;

    @ApiModelProperty(value = "货场")
    private String positionName;

    @ApiModelProperty(value = "货名")
    private String cargoType;

    @ApiModelProperty(value = "货名")
    private String cargoTypeName;

    @ApiModelProperty(value = "包装")
    private String packageType;

    @ApiModelProperty(value = "包装")
    private String packageTypeName;

    @ApiModelProperty(value = "总件数")
    private Integer allPiece;

    @JsonSerialize(using = BigDecimalSerializer.class)
    @ApiModelProperty(value = "总吨数")
    private BigDecimal allTon;

    @ApiModelProperty(value = "总票数")
    private Integer bills;

    @ApiModelProperty(value = "总货主数")
    private Integer cargoOwners;
}
